From daf911baab4db150c38c2a5f379ec074b412c5e5 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 26 Mar 2010 08:45:45 +0000 Subject: [PATCH] xenpaging: Fix ioemu invalidation xs_write takes the length of the string being written, not the path. Signed-off-by: Steven Hand Signed-off-by: Keir Fraser --- tools/xenpaging/xc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/xenpaging/xc.c b/tools/xenpaging/xc.c index 98931c5331..a5a396b3fd 100644 --- a/tools/xenpaging/xc.c +++ b/tools/xenpaging/xc.c @@ -22,6 +22,7 @@ #include +#include #include #include #include @@ -56,7 +57,7 @@ int xc_mem_paging_flush_ioemu_cache(domid_t domain_id) if ( xsh == NULL ) return -EIO; - rc = xs_write(xsh, XBT_NULL, path, "flush-cache", strlen(path)); + rc = xs_write(xsh, XBT_NULL, path, "flush-cache", strlen("flush-cache")); xs_daemon_close(xsh); -- 2.30.2